package com.ds.infrastructure.hyperspace.console.dao.mapper;

import com.ds.infrastructure.hyperspace.console.entity.page.TbPageWhere;
import com.ds.infrastructure.hyperspace.console.entity.table.TbDeployNode;
import com.ds.infrastructure.hyperspace.console.entity.where.TbCustomWhere;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: yaozhendong
 * @create: 2019-10-23 11:16
 **/

public interface TbDeployNodeMapper {
    int insertSelective(TbDeployNode record);

    TbDeployNode selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(TbDeployNode record);

    //自定义接口===========================================
    List<TbDeployNode> selectListForPage(@Param("pojo") TbDeployNode where, @Param("mapWhere") TbCustomWhere mapWhere, @Param("pageWhere") TbPageWhere pageWhere);

    int selectListForPageCount(@Param("pojo") TbDeployNode where, @Param("mapWhere") TbCustomWhere mapWhere);

    int insertList(@Param("pojos") List<TbDeployNode> pojo);

    /**
     * 更新 动态条件
     *
     * @param pojo
     * @param where
     * @return
     */
    int updateWithDynamicWhere(@Param("pojo") TbDeployNode pojo, @Param("mapWhere") TbDeployNode where);
}
